package xyz.yeidi.dao.api;

import xyz.yeidi.pojo.Business;

import java.util.List;

/**
 * @Author JIP
 * @Date 2021-07-30 14:22
 * @Version 1.0
 * @Describe :  关于Dao对于business数据处理的接口,我们不能拿到business的密码
 */
public interface BusinessDao {
    //获取所有的商家
    public List<Business> getAllBusiness() throws Exception;

    //通过id获取商家
    public Business getBusinessByid(Integer id) throws Exception;

    //根据typeId获取商家
    public List<Business> getBusinessByTypeId(Integer typeId) throws Exception;

    //根据商家姓名模糊查询商家
    public List<Business> searchBusinessByName(String businessName) throws Exception;
}
